<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游戏列表</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            min-height: 0vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 30px 20px;
            background-image: url('./background.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-color: #f0f5ff;
        }
        
        .container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }
        
        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
            font-size: 2.5rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .games-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .game-card {
            display: flex;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 100, 0.1);
            transition: all 0.3s ease;
            height: 90px;
            text-decoration: none;
        }
        
        .game-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 7px 15px rgba(0, 0, 100, 0.15);
        }
        
        .game-icon-container {
            width: 70px;
            height: 70px;
            margin: 10px;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f8ff;
        }
        
        .game-icon {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .game-content {
            flex: 1;
            padding: 10px 15px 10px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .game-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 5px;
        }
        
        .game-description {
            font-size: 0.85rem;
            color: #7f8c8d;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        @media (max-width: 480px) {
            .game-card {
                height: 85px;
            }
            
            .game-icon-container {
                width: 60px;
                height: 60px;
                margin: 12.5px 10px;
            }
            
            .game-icon {
                width: 50px;
                height: 50px;
            }
            
            .game-title {
                font-size: 1rem;
            }
            
            .game-description {
                font-size: 0.8rem;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🎮小游戏Game</h1>
        
        <div class="games-container">
            <!-- 贪吃蛇 -->
            <a href="./games/tanchishe" class="game-card">
                <div class="game-icon-container">
                    <img src="./games/tanchishe/favicon.png" alt="贪吃蛇" class="game-icon">
                </div>
                <div class="game-content">
                    <h3 class="game-title">经典贪吃蛇</h3>
                    <p class="game-description">经典贪吃蛇玩法，吃苹果+1分，吃金苹果+5分</p>
                </div>
            </a>
        </div>
    </div>
</body>
</html>
